import React, { Fragment } from 'react';

/**
 * 空格
 * @param param0
 * @returns
 */
export default function SpaceWrapper(_ref) {
  var children = _ref.children,
    _ref$depth = _ref.depth,
    depth = _ref$depth === void 0 ? 0 : _ref$depth,
    spaceable = _ref.spaceable;
  var space = '';
  var i = depth;
  while (i) {
    space += '  ';
    i -= 1;
  }
  return /*#__PURE__*/ React.createElement(
    Fragment,
    null,
    spaceable === false ? null : space,
    children,
  );
}
